package cn.qayy.dto;

/***
 *@author jobs1127
 *
 *
 */
public class TerminalPlans {
    private String terminalName;
    private int sumScount;

    public TerminalPlans() {
    }

    public TerminalPlans(String terminalName, int sumScount) {
        this.terminalName = terminalName;
        this.sumScount = sumScount;
    }

    public static void main(String[] args) {
        System.out.println(null instanceof  TerminalPlans);
    }
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof TerminalPlans)) return false;
        if(getTerminalName() == null || o == null) {
            return false;
        }
        TerminalPlans that = (TerminalPlans) o;
        return getTerminalName().equals(that.getTerminalName());
    }

    @Override
    public int hashCode() {
        return getTerminalName().hashCode();
    }

    @Override
    public String toString() {
        return "TerminalPlans{" +
                "terminalName='" + terminalName + '\'' +
                ", sumScount=" + sumScount +
                '}';
    }

    public String getTerminalName() {
        return this.terminalName;
    }

    public void setTerminalName(String terminalName) {
        this.terminalName = terminalName;
    }

    public int getSumScount() {
        return this.sumScount;
    }

    public void setSumScount(int sumScount) {
        this.sumScount = sumScount;
    }
}
